package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;
import com.sky.vo.EmployeePageVO;
import com.sky.vo.EmployeeVO;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    Result<String> addEmployee(EmployeeDTO employeeDTO);

    Result<EmployeePageVO> findEmployee(EmployeePageQueryDTO e);

    Result<String> updatePassword(PasswordEditDTO passwordEditDTO);

    Result<String> enablingDisabling(Long status, Long id);

    Result<EmployeeVO> findEmpById(Long id);

    Result<String> editingEmp(EmployeeDTO employeeDTO);
}
